updating oE file_type
file_type
include filesys.e namespace filesys public function file_type(sequence filename)
gets the type of a file.
Parameters:
- filename : the name of the file to query. It must not have wildcards.
Returns:
An integer,
- FILETYPE_UNDEFINED (-1) if file could be multiply defined (i.e., contains any wildcards - '*' or '?')
- FILETYPE_NOT_FOUND (0) if filename does not exist
- FILETYPE_FILE (1) if filename is a file
- FILETYPE_DIRECTORY (2) if filename is a directory
See Also:
dir, FILETYPE_DIRECTORY, FILETYPE_FILE, FILETYPE_NOT_FOUND, FILETYPE_UNDEFINED
Not Categorized, Please Help
|